package zuoye;
public class XunHuan {

    public static void main(String[] args) {
        int arr[] = {2, 5, 7, 9};
        for (int i = 0, num = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length; j++) {
                for (int k = 0; k < arr.length; k++) {
                    if (arr[i] == arr[j]) continue;
                    if (arr[j] == arr[k]) continue;
                    if (arr[i] == arr[k]) continue;
                    num++;
                    System.out.println("第" + num + "个" + arr[i] + " " + arr[j] + " " + arr[k]);
                }
            }
        }
    }
}